<!DOCTYPE HTML>

<html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>百宝库后台管理</title>
        <import type="css" file="admin/css/index" />
        <import type="js" file="common/jquery171min" />
        <script type="text/javascript">

            function update_cache() {

            $.ajax({

                url:'{:U('update_cache')}?n='+Math.random(),

                success:function(val) {

                    alert(val);

                }

            });

           }

        </script>
        </head>

        <body>
<div class="header">
          <div class="w">
    <div class="fl">百宝库后台管理</div>
    <div class="fr"><span>你好:{$Think.session.admin_username}</span> | <a href="{:U('Home/Index')}" target="_blank">网站首页</a> | <a href="{:U('Index/main')}?url={:U('changePassword')}" >修改密码</a> | <a href="javascript:update_cache()" >更新缓存</a> ｜ <a href="{:U('Login/logout')}" >退出管理</a> </div>
    <div class="c"></div>
  </div>
        </div>
<div class="menu">
          <div class="w">
    <ul>
              <li class="f"><a class="sel" href="{:U(index)}">后台首页</a></li>
              <foreach name="top_menu" item="item">
        <li><a id="top_menu_{$item.menu_id}" href="{:U('Index/main')}?menu={$item.menu_id}&url=__MODULE__/{$item.menu_link}">{$item.menu_name}</a></li>
      </foreach>
            </ul>
  </div>
        </div>
<div class="mainer">
          <div class="w">
    <div class="wenhou">
              <php> shijian();wenhou(); </php>
            </div>
    <div class="module_list">
              <foreach name="index_menu" item="item">
        <div class="module">
                  <div class="t">
            <div class="t1">
                      <h3>{$item.menu_name}</h3>
                    </div>
          </div>
                  <div class="con">
            <foreach name="item.sub" item="sub_item">
                      <dl>
                <dt><a href="{:U('Index/main')}?menu={$sub_item.top_menu_id}&url=__MODULE__/{$sub_item.menu_link}"><img src="__PUBLIC__/admin/images/{$sub_item.ico}" alt="{$sub_item.menu_name}" /></a></dt>
                <dd><a href="{:U('Index/main')}?menu={$sub_item.top_menu_id}&url=__MODULE__/{$sub_item.menu_link}">{$sub_item.menu_name}</a></dd>
              </dl>
                    </foreach>
            <div class="c"></div>
          </div>
                </div>
      </foreach>
              <div class="c"></div>
            </div>
  </div>
        </div>
<div class="footer">
          <div class="w">
    <div class="fl">&copy;版权所有：深圳方维网络科技有限公司 </div>
    <div class="fr"><a href="http://www.580jz.net" target="_blank">技术支持</a>：<a href="http://www.szfangwei.cn" target="_blank">方维网络</a></div>
    <div class="c"></div>
  </div>
        </div>
</body>
</html>